package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbCarOperation;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbCarOperation is a Querydsl query type for ETbCarOperation
 */
@Label("TbCarOperation查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbCarOperation extends RelationalPathBase<ETbCarOperation> {

    private static final long serialVersionUID = -77249942;

    public static final QTbCarOperation tbCarOperation = new QTbCarOperation("tb_car_operation");

    public class PrimaryKeys {

        public final PrimaryKey<ETbCarOperation> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCar> carOperationFk = createForeignKey(carId, "id");

    }

    public final StringPath amount = createString("amount");

    public final StringPath carId = createString("carId");

    public final StringPath createBy = createString("createBy");

    public final DateTimePath<org.joda.time.DateTime> createDate = createDateTime("createDate", org.joda.time.DateTime.class);

    public final StringPath id = createString("id");

    public final StringPath operation = createString("operation");

    public final StringPath remark = createString("remark");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbCarOperation(String variable) {
        super(ETbCarOperation.class, forVariable(variable), "null", "tb_car_operation");
        addMetadata();
    }

    public QTbCarOperation(String variable, String schema, String table) {
        super(ETbCarOperation.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbCarOperation(Path<? extends ETbCarOperation> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_car_operation");
        addMetadata();
    }

    public QTbCarOperation(PathMetadata<?> metadata) {
        super(ETbCarOperation.class, metadata, "null", "tb_car_operation");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(amount, ColumnMetadata.named("amount").withIndex(4).ofType(Types.VARCHAR).withSize(100));
        addMetadata(carId, ColumnMetadata.named("car_id").withIndex(2).ofType(Types.CHAR).withSize(24));
        addMetadata(createBy, ColumnMetadata.named("create_by").withIndex(6).ofType(Types.VARCHAR).withSize(50));
        addMetadata(createDate, ColumnMetadata.named("create_date").withIndex(7).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(operation, ColumnMetadata.named("operation").withIndex(3).ofType(Types.VARCHAR).withSize(100));
        addMetadata(remark, ColumnMetadata.named("remark").withIndex(5).ofType(Types.VARCHAR).withSize(255));
    }

}

